package com.chuangsi.project.admin.dto.app.index;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author wangshengming
 * @date 2023/4/6
 */
@Data
public class DaySalesAmountDto {

    @ApiModelProperty(value = "今日销售额")
    private BigDecimal todaytSalesAmount;

    @ApiModelProperty(value = "昨日销售额")
    private BigDecimal lastDaytSalesAmount;

    @ApiModelProperty(value = "日环比",notes = "日环比增长率 = [(今日数值 - 昨日数值) / 昨日数值] × 100%")
    private String DoD;


    public DaySalesAmountDto(BigDecimal todaytSalesAmount, BigDecimal lastDaytSalesAmount, String doD) {
        this.todaytSalesAmount = todaytSalesAmount;
        this.lastDaytSalesAmount = lastDaytSalesAmount;
        this.DoD = doD;
    }
}
